package com.health.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 *
 * </p>
 *
 * @author sanchuan
 * @since 2023-04-22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("banned_users")
@ApiModel(value = "BannedUsers对象", description = "")
public class BannedUsers implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("封禁用户id")
    private Integer userId;

    @ApiModelProperty("账号")
    private String username;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("封禁原因")
    private String content;

    @ApiModelProperty("封禁天数 -1: 永久封禁")
    private Integer banTime;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
